home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds / killexpr.man < prev    next >
Encoding:
Text File  |  1990-03-01  |  2.1 KB  |  56 lines

  1. '\" Copyright 1990 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/cmds/killexpr/RCS/killexpr.man,v 1.1 90/02/28 23:01:01 jhh Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS KILLEXPR cmds
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. killexpr \- Kill all processes who match the given expression(s)
  17. .SH SYNOPSIS
  18. \fBkillexpr\fR [\fIoptions\fR] \fIexpr expr...\fR
  19. .SH OPTIONS
  20. .IP "\fB\-h \fIhost\fR" 15
  21. Kills processes on the machine \fIhost\fR. The default is to kill processes
  22. on the local host.
  23. .IP "\fB\-help\fR" 15
  24. Print a summary of the command-line options.
  25. .BE
  26.  
  27. .SH DESCRIPTION
  28. .PP
  29. The \fBkillexpr\fR command
  30. is used to a user's processes whose command line contains
  31. one of a set of regular expressions.
  32. The regular expression arguments are 'or'ed together to form a single
  33. expression that compared to the command lines of the user's processes.
  34. If a match is found the process is sent a SIGTERM signal, followed by
  35. a SIGKILL signal.
  36. The expression arguments are often simple strings, but can be more
  37. complex regular expressions of the form found in Perl.
  38. A process will be killed even if the expression matches only part
  39. of a word.  
  40. If you want the expression to match an entire word in the command line
  41. then you should surround the argument with spaces.
  42. .SH EXAMPLES
  43. .PP
  44. .IP "killexpr foo"
  45. Kills all processes that have the pattern 'foo' in their command line.
  46. .IP "killexpr ' foo '"
  47. Kills all processes that have the word 'foo' in their command line.
  48. .IP "killexpr foo bar
  49. Kills all processes that have either the pattern 'foo' 
  50. or the pattern 'bar' in their command line.
  51. .IP "killexpr '^foo'
  52. Kills all processes whose command line starts with the pattern 'foo'.
  53. .SH KEYWORDS
  54. kill
  55.  
  56.